/**
 * 
 */
package dao;

import java.util.List;

import model.Administrator;
import model.Door;
import model.Log;
import model.Message;
import model.User;
import service.SecurityQueryHelper;

/**
 * 
 * @author yalin
 * 
 */
public interface SecurityDao {
	// Door

	public void updateDoor(Door door);

	public Door getDoorByID(String doorID);

	public Integer count(SecurityQueryHelper helper);

	public List<Log> getScopedLogs(SecurityQueryHelper helper, int begin,
			int end);

	public void updateAll();

	public List<Door> loadAllDoor();

	public void createLog(Log log, Door door);

	public List<Message> getScopedMsgs(SecurityQueryHelper helper, int begin,
			int end);

	public Message getMsgByID(Integer msg_ID);

	public void updateMsg(Message msg);

	// public Administrator getAdminByName(String userName);

}
